package com.yupi.apiback.model.dto.interfaceInfo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 接口信息创建对象
 *
 * @author yanghaifeng
 * @date 2024/1/18 15:54
 */
@Data
@ApiModel("接口信息创建对象")
public class InterfaceAddRequest implements Serializable {

    private static final long serialVersionUID = 6977454370085007817L;
    @ApiModelProperty("接口名称")
    private String name;

    @ApiModelProperty("接口URL")
    private String url;

    @ApiModelProperty("接口描述")
    private String description;

    @ApiModelProperty("请求方法类型 GET POST")
    private String methodType;

    @ApiModelProperty("请求头信息")
    private String requestHeader;

    @ApiModelProperty("请求头参数")
    @TableField(value = "request_params")
    private String requestParams;

    @ApiModelProperty("响应头信息")
    private String responseHeader;

    @ApiModelProperty("接口状态；1.关闭；2.开启；")
    private String status;
}
